package com.itany.cms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_course_type")
public class CourseType {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String typeName;
    private Integer parentId;
    private Integer status;

    public CourseType(String typeName, Integer parentId, Integer status) {
        this.typeName = typeName;
        this.parentId = parentId;
        this.status = status;
    }
}
